package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.workcellinfo;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.FaultType;

import java.util.Map;

/**
 * Created by huangxueqian@cqhilink.com on 2016/12/12.
 */
public interface JsmFaultTypeService {

    /**
     * 加载生产实体类型 -  故障类型管理列表
     * @param faultType
     */
    public JSONObject table(FaultType faultType) throws Exception;

    /**
     * 新增故障类型
     * @param faultType 故障类型，
     */
    public Integer addFaultType(FaultType faultType, Employee employee) throws Exception;

    /**
     * 新增故障类型
     *
     * @param faultTypeIds 批量删除故障类型 ，
     * @return
     * @throws Exception
     */
    public Integer delFaultType(Map faultTypeIds);

    /**
     * 新增故障类型
     *
     * @param faultTypeId 故障类型信息  ，
     * @return
     * @throws Exception
     */
    public FaultType queryFaultType(String faultTypeId) throws Exception;

}
